
export type loginForm = {
  username:string,
  password:string
}


export interface resp {
  code:number,
  data:any,
  message?:string
}

export interface loginRes extends resp {
  data:{
    token:string,
    refreshToken:string,
  }

}
export interface userInfo extends resp {
  data:User
}
export interface User {
  id:number,
  username:string,
  password:string,
  name:string,
  address:string,
  avatar:string,
  role: string[],
  routes: string[],
}
